package com.tk.demo.dao;

import com.tk.demo.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StudentDao extends JpaRepository<Student,Integer> {

    Student findByName(String name);

    Student findByNameAndAge(String name, Integer age);

  /*  @Query("from Student u where u.name=:name")
    Student findStudent(@Param("name") String name);*/
}
